
export default function CountReducers(preState = 0, action) {
  console.log("preState");
  console.log(preState);
  console.log("action");
  console.log(action);
  
  const {type, data} = action

  switch (type) {
    case "increment":
      return preState + data;
    default:
      return 0;
  }
}